// 用户信息api
import {
  post,
  getWithToken, get, postWithToken,
} from '../http/http';

export default {
  login(params) {
    return post('/plain/user/login', params)
  },
  getInvitation(params) {
    return getWithToken('/plain/user/invitation', params)
  },
  getReward(params) {
    return getWithToken('/plain/user/invitation/reward', params)
  },
  getInvitationCode(params) {
    return getWithToken('/plain/user/invitation/code', params)
  },
  getUserBalance(params) {
    return getWithToken('/plain/user/bank/balance', params)
  },
  getUserCashOut(params) {
    return getWithToken('/plain/user/bank/cashout', params)
  },
  getStatement(params) {
    return getWithToken('/plain/user/bank/statement', params)
  },
  getWxOpenId(params) {
    return get('/plain/wx/mini/openid', params)
  },
  getVerification(params) {
    return post('/plain/user/verification', params)
  },
  postUserCashout(params) {
    return post('/plain/user/bank/cashout', params)
  }
}
